package com.chenjt.juc.four_lock;

/**
 * 注释：
 *
 * @author chenjt
 * @date 2024/7/6 15:41
 */
public class LockSyncDemo {


    Object object = new Object();

    public void m1(){
        synchronized (object){
            System.out.println("----hello synchronized code block");
        }
    }


    public static void main(String[] args) {

    }

}


